package com.learning.jsonrpc4jservice.rpc;

import com.googlecode.jsonrpc4j.JsonRpcParam;
import com.googlecode.jsonrpc4j.JsonRpcService;
import com.learning.jsonrpc4jservice.bean.User;

import java.util.List;

/**
 * (description)
 *
 * @author jinlong.liao on 2018/4/14
 */
@JsonRpcService("/producer")
public interface ProducerRpcService {

    String hi(@JsonRpcParam("str") String str);

    List<User> list(@JsonRpcParam("ids") List<Integer> ids);

    User get(@JsonRpcParam("id") Integer id);
}
